package com.fottas.adware.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class SmsScalpExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public SmsScalpExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andIdIsNull() {
            addCriterion("id is null");
            return (Criteria) this;
        }

        public Criteria andIdIsNotNull() {
            addCriterion("id is not null");
            return (Criteria) this;
        }

        public Criteria andIdEqualTo(Long value) {
            addCriterion("id =", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotEqualTo(Long value) {
            addCriterion("id <>", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThan(Long value) {
            addCriterion("id >", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdGreaterThanOrEqualTo(Long value) {
            addCriterion("id >=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThan(Long value) {
            addCriterion("id <", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdLessThanOrEqualTo(Long value) {
            addCriterion("id <=", value, "id");
            return (Criteria) this;
        }

        public Criteria andIdIn(List<Long> values) {
            addCriterion("id in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotIn(List<Long> values) {
            addCriterion("id not in", values, "id");
            return (Criteria) this;
        }

        public Criteria andIdBetween(Long value1, Long value2) {
            addCriterion("id between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andIdNotBetween(Long value1, Long value2) {
            addCriterion("id not between", value1, value2, "id");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNull() {
            addCriterion("task_id is null");
            return (Criteria) this;
        }

        public Criteria andTaskIdIsNotNull() {
            addCriterion("task_id is not null");
            return (Criteria) this;
        }

        public Criteria andTaskIdEqualTo(Long value) {
            addCriterion("task_id =", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotEqualTo(Long value) {
            addCriterion("task_id <>", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThan(Long value) {
            addCriterion("task_id >", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdGreaterThanOrEqualTo(Long value) {
            addCriterion("task_id >=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThan(Long value) {
            addCriterion("task_id <", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdLessThanOrEqualTo(Long value) {
            addCriterion("task_id <=", value, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdIn(List<Long> values) {
            addCriterion("task_id in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotIn(List<Long> values) {
            addCriterion("task_id not in", values, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdBetween(Long value1, Long value2) {
            addCriterion("task_id between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andTaskIdNotBetween(Long value1, Long value2) {
            addCriterion("task_id not between", value1, value2, "taskId");
            return (Criteria) this;
        }

        public Criteria andScalpStateIsNull() {
            addCriterion("scalp_state is null");
            return (Criteria) this;
        }

        public Criteria andScalpStateIsNotNull() {
            addCriterion("scalp_state is not null");
            return (Criteria) this;
        }

        public Criteria andScalpStateEqualTo(Integer value) {
            addCriterion("scalp_state =", value, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateNotEqualTo(Integer value) {
            addCriterion("scalp_state <>", value, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateGreaterThan(Integer value) {
            addCriterion("scalp_state >", value, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateGreaterThanOrEqualTo(Integer value) {
            addCriterion("scalp_state >=", value, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateLessThan(Integer value) {
            addCriterion("scalp_state <", value, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateLessThanOrEqualTo(Integer value) {
            addCriterion("scalp_state <=", value, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateIn(List<Integer> values) {
            addCriterion("scalp_state in", values, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateNotIn(List<Integer> values) {
            addCriterion("scalp_state not in", values, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateBetween(Integer value1, Integer value2) {
            addCriterion("scalp_state between", value1, value2, "scalpState");
            return (Criteria) this;
        }

        public Criteria andScalpStateNotBetween(Integer value1, Integer value2) {
            addCriterion("scalp_state not between", value1, value2, "scalpState");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoIsNull() {
            addCriterion("product_order_no is null");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoIsNotNull() {
            addCriterion("product_order_no is not null");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoEqualTo(String value) {
            addCriterion("product_order_no =", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoNotEqualTo(String value) {
            addCriterion("product_order_no <>", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoGreaterThan(String value) {
            addCriterion("product_order_no >", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoGreaterThanOrEqualTo(String value) {
            addCriterion("product_order_no >=", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoLessThan(String value) {
            addCriterion("product_order_no <", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoLessThanOrEqualTo(String value) {
            addCriterion("product_order_no <=", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoLike(String value) {
            addCriterion("product_order_no like", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoNotLike(String value) {
            addCriterion("product_order_no not like", value, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoIn(List<String> values) {
            addCriterion("product_order_no in", values, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoNotIn(List<String> values) {
            addCriterion("product_order_no not in", values, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoBetween(String value1, String value2) {
            addCriterion("product_order_no between", value1, value2, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andProductOrderNoNotBetween(String value1, String value2) {
            addCriterion("product_order_no not between", value1, value2, "productOrderNo");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgIsNull() {
            addCriterion("browsing_history_img is null");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgIsNotNull() {
            addCriterion("browsing_history_img is not null");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgEqualTo(String value) {
            addCriterion("browsing_history_img =", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgNotEqualTo(String value) {
            addCriterion("browsing_history_img <>", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgGreaterThan(String value) {
            addCriterion("browsing_history_img >", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgGreaterThanOrEqualTo(String value) {
            addCriterion("browsing_history_img >=", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgLessThan(String value) {
            addCriterion("browsing_history_img <", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgLessThanOrEqualTo(String value) {
            addCriterion("browsing_history_img <=", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgLike(String value) {
            addCriterion("browsing_history_img like", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgNotLike(String value) {
            addCriterion("browsing_history_img not like", value, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgIn(List<String> values) {
            addCriterion("browsing_history_img in", values, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgNotIn(List<String> values) {
            addCriterion("browsing_history_img not in", values, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgBetween(String value1, String value2) {
            addCriterion("browsing_history_img between", value1, value2, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andBrowsingHistoryImgNotBetween(String value1, String value2) {
            addCriterion("browsing_history_img not between", value1, value2, "browsingHistoryImg");
            return (Criteria) this;
        }

        public Criteria andExpressNumberIsNull() {
            addCriterion("express_number is null");
            return (Criteria) this;
        }

        public Criteria andExpressNumberIsNotNull() {
            addCriterion("express_number is not null");
            return (Criteria) this;
        }

        public Criteria andExpressNumberEqualTo(String value) {
            addCriterion("express_number =", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberNotEqualTo(String value) {
            addCriterion("express_number <>", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberGreaterThan(String value) {
            addCriterion("express_number >", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberGreaterThanOrEqualTo(String value) {
            addCriterion("express_number >=", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberLessThan(String value) {
            addCriterion("express_number <", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberLessThanOrEqualTo(String value) {
            addCriterion("express_number <=", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberLike(String value) {
            addCriterion("express_number like", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberNotLike(String value) {
            addCriterion("express_number not like", value, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberIn(List<String> values) {
            addCriterion("express_number in", values, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberNotIn(List<String> values) {
            addCriterion("express_number not in", values, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberBetween(String value1, String value2) {
            addCriterion("express_number between", value1, value2, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andExpressNumberNotBetween(String value1, String value2) {
            addCriterion("express_number not between", value1, value2, "expressNumber");
            return (Criteria) this;
        }

        public Criteria andTaobaoIsNull() {
            addCriterion("taobao is null");
            return (Criteria) this;
        }

        public Criteria andTaobaoIsNotNull() {
            addCriterion("taobao is not null");
            return (Criteria) this;
        }

        public Criteria andTaobaoEqualTo(String value) {
            addCriterion("taobao =", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoNotEqualTo(String value) {
            addCriterion("taobao <>", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoGreaterThan(String value) {
            addCriterion("taobao >", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoGreaterThanOrEqualTo(String value) {
            addCriterion("taobao >=", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoLessThan(String value) {
            addCriterion("taobao <", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoLessThanOrEqualTo(String value) {
            addCriterion("taobao <=", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoLike(String value) {
            addCriterion("taobao like", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoNotLike(String value) {
            addCriterion("taobao not like", value, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoIn(List<String> values) {
            addCriterion("taobao in", values, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoNotIn(List<String> values) {
            addCriterion("taobao not in", values, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoBetween(String value1, String value2) {
            addCriterion("taobao between", value1, value2, "taobao");
            return (Criteria) this;
        }

        public Criteria andTaobaoNotBetween(String value1, String value2) {
            addCriterion("taobao not between", value1, value2, "taobao");
            return (Criteria) this;
        }

        public Criteria andCommentImgIsNull() {
            addCriterion("comment_img is null");
            return (Criteria) this;
        }

        public Criteria andCommentImgIsNotNull() {
            addCriterion("comment_img is not null");
            return (Criteria) this;
        }

        public Criteria andCommentImgEqualTo(String value) {
            addCriterion("comment_img =", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgNotEqualTo(String value) {
            addCriterion("comment_img <>", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgGreaterThan(String value) {
            addCriterion("comment_img >", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgGreaterThanOrEqualTo(String value) {
            addCriterion("comment_img >=", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgLessThan(String value) {
            addCriterion("comment_img <", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgLessThanOrEqualTo(String value) {
            addCriterion("comment_img <=", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgLike(String value) {
            addCriterion("comment_img like", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgNotLike(String value) {
            addCriterion("comment_img not like", value, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgIn(List<String> values) {
            addCriterion("comment_img in", values, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgNotIn(List<String> values) {
            addCriterion("comment_img not in", values, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgBetween(String value1, String value2) {
            addCriterion("comment_img between", value1, value2, "commentImg");
            return (Criteria) this;
        }

        public Criteria andCommentImgNotBetween(String value1, String value2) {
            addCriterion("comment_img not between", value1, value2, "commentImg");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNull() {
            addCriterion("update_time is null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIsNotNull() {
            addCriterion("update_time is not null");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeEqualTo(Date value) {
            addCriterion("update_time =", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotEqualTo(Date value) {
            addCriterion("update_time <>", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThan(Date value) {
            addCriterion("update_time >", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeGreaterThanOrEqualTo(Date value) {
            addCriterion("update_time >=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThan(Date value) {
            addCriterion("update_time <", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeLessThanOrEqualTo(Date value) {
            addCriterion("update_time <=", value, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeIn(List<Date> values) {
            addCriterion("update_time in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotIn(List<Date> values) {
            addCriterion("update_time not in", values, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeBetween(Date value1, Date value2) {
            addCriterion("update_time between", value1, value2, "updateTime");
            return (Criteria) this;
        }

        public Criteria andUpdateTimeNotBetween(Date value1, Date value2) {
            addCriterion("update_time not between", value1, value2, "updateTime");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}